/**
 * 
 */
package com.wgo.precise.service;

import java.io.Serializable;

import com.wgo.bpot.common.removeme.Persistent;

/**
 * @author peide3
 *
 */
public interface PreciseService {

	/**
	 * Imports data from an xml-file to server
	 * 
	 * @param preciseXmlFile
	 * @return
	 */
	public abstract boolean importFromXml( byte[] preciseXmlFile) ;

	/**
	 * Exports data from server to an xml-file;
	 * @return
	 */
	public abstract byte[] exportToXml() ;

	
	/**
	 * 
	 * @param persistent The target persistent consept.
	 * @return A byte-array of the PDF-document of the persistent concept.
	 */
	public abstract byte[] getPdf( Class<? extends Persistent> type, Serializable identifier );
	
}
